<?php

namespace App\Job;


class OrderPayJob extends Job
{
    //订单编号
    public $order_no;

    //被邀请人id
    public $user_id;

    //邀请人
    public $referer_id;

    //支付金额
    public $amount;

    //利润
    public $bonus;

    //积分
    public $mt;

    //订单状态：0-已支付；1-已完成;-1-退款
    public $status;

    //创建时间
    public $created_at;

    //提交消费队列时间
    public $updated_at;


    /**
     * OrderPayJob constructor.
     * @param string $order_no 订单编号
     * @param string $user_id 被邀请人id
     * @param int $referer_id 邀请人
     * @param float $amount 支付金额
     * @param float $bonus 利润
     * @param float $mt 积分
     * @param int $status 订单状态
     */
    public function __construct(string $order_no, string $user_id, int $referer_id, int $amount, int $bonus, int $mt, int $status, string $created_at, string $updated_at)
    {
        $this->order_no = $order_no;
        $this->user_id = $user_id;
        $this->referer_id = $referer_id;
        $this->amount = $amount;
        $this->bonus = $bonus;
        $this->mt = $mt;
        $this->status = $status;
        $this->created_at = $created_at;
        $this->updated_at = $updated_at;
    }


}
